<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>switch-case</h1>
<div th:switch="${gender}">
    <span th:case="man">我是男人</span>
    <span th:case="feman">我是女人</span>
    <span th:case="*">我不是人</span>
</div>
</body>
</html>